package by.epam.communalservices.entity;

public class JkhTeam {
    private Long id, idOwner;

    private String name, surname,  patronymic;

    public JkhTeam() {
        this.id = 0L;
        this.idOwner = 0L;
        this.name = "";
        this.surname = "";
        this.patronymic = "";
    }

    public JkhTeam(Long id, Long idOwner, String surname, 
            String name, String patronymic) {
        this.id = id;
        this.idOwner = idOwner;
        this.name = name;
        this.surname = surname;
        this.patronymic = patronymic;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIdOwner() {
        return idOwner;
    }

    public void setIdOwner(Long idOwner) {
        this.idOwner = idOwner;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getPatronymic() {
        return patronymic;
    }

    public void setPatronymic(String patronymic) {
        this.patronymic = patronymic;
    }

    public String toString() {
        return new StringBuilder().append("[id: ").append(getId()).append(", name: ").append(getName()).append(", surname: ")
                .append(getSurname()).append(", patronymic: ").append(getPatronymic()).append(']').toString();
    }
}
